<?php
	defined('RUN') or die('No access');

	class AdminModel
	{
		public function getLayoutData()
		{
			$data = array();

			// Breadcrumbs
			$data['controller'] = $controller = Bootstrap::getControllerName();
			$data['method'] = $method = Bootstrap::getMethodName();

			$data['controllers'] = $controllers = array(
					'dashboard' => 'Dashboard',
					'category' => 'Categories',
					'post' => 'Posts',
					'place' => 'Places',
					'setting' => 'Settings',
					'member' => 'Members',
					'support' => 'Support',
					'adv' => 'Advertising',
					'product_category' => 'Product Category',
					'product' => 'Product',
					'config' => 'Config',
					'slider' => 'Slider'
				);

			$data['methods'] = $methods = array(
					'index' => 'Lists',
					'view' => 'Lists',
					'update' => 'Update',
					'add' => 'Add new',
					'delete' => 'Delete'
				);

			$data['breadcrumbs'] = array(
					array('name' => $controllers[$controller], 'uri' => 'admin/' . $controller),
					array('name' => $methods[$method], 'uri' => 'admin/' . $controller . '/' . $method),
				);

			// Return data
			return $data;
		}
	}
